package com.muyu.danmo.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 培训班收藏对象 danmo_training_favorite
 * 
 * @author kunzong
 * @date 2024-11-27
 */
public class DanmoTrainingFavorite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏唯一标识符 */
    private Long id;

    /** 收藏用户ID */
    @Excel(name = "收藏用户ID")
    private Long userId;

    /** 收藏店铺ID */
    @Excel(name = "收藏店铺ID")
    private Long postId;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 取消收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "取消收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 店铺是否收藏 */
    @Excel(name = "店铺是否收藏")
    private String favoriteName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setFavoriteName(String favoriteName) 
    {
        this.favoriteName = favoriteName;
    }

    public String getFavoriteName() 
    {
        return favoriteName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("postId", getPostId())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .append("favoriteName", getFavoriteName())
            .toString();
    }
}
